package com.morpheus.redis.lettuce.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Import;

import com.morpheus.redis.lettuce.sentinel.LettuceSentinelImportSelector;
import com.morpheus.redis.lettuce.sentinel.OnEnableLettuceSentinelCondition;

@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD, ElementType.TYPE })
@Documented
@Conditional(OnEnableLettuceSentinelCondition.class)
@Import(LettuceSentinelImportSelector.class)
public @interface ConditionalOnLettuceSentinelConfig {
}
